package factoryGame;

import game.constants.ReferenceAction;
import interfaces.ActionInterface;
import actions.ActionDie;
import actions.ActionModifySpetialFeature;
import actions.ActionMove;
import actions.ActionReciveAttack;
import actions.ActionUsePotion;
import actions.ActionXYtoMove;

public class ActionFactory {

	public static ActionInterface getAction(int actionId) {
		
		switch(actionId){
		
		case ReferenceAction.ACTION_MOVE:
			return new ActionMove();
		
			
		case ReferenceAction.ACTION_MODIFY_SPETIAL_FEATURE:
			return new ActionModifySpetialFeature();
			
		
		case ReferenceAction.ACTION_RECIVE_ATTACK:
			return new ActionReciveAttack();
		
		case ReferenceAction.ACTION_DIE:
			return new ActionDie();
			
		
			
		case ReferenceAction.ACTION_XY_TO_MOVE:
			return new ActionXYtoMove();
			
		case ReferenceAction.ACTION_USE_POTION:
			return new ActionUsePotion();
			
		}
		System.out.println("NO TENGO LA ACCION QUE BUSCO EN ACTION FACTORY");
		return null;
	}

}
